﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace CDH_VoteSys.Models.User
{
    public class AddUserRequest
    {
		/// <summary>
		/// 用户名称
		/// </summary>
		[StringLength(maximumLength: 30, MinimumLength = 2, ErrorMessage = "请输入正确的用户名")]
		public string UName { get; set; }
		/// <summary>
		/// 邮箱
		/// </summary>
		[StringLength(maximumLength: 30, MinimumLength = 10, ErrorMessage = "请输入正确的邮箱")]
		public string Email { get; set; }

		/// <summary>
		/// 密码
		/// MD5加密
		/// </summary>
		[StringLength(maximumLength: 30, MinimumLength = 6, ErrorMessage = "请输入正确的密码")]
		public string Password { get; set; }

		/// <summary>
		/// 确认密码
		/// </summary>
		public string cifrgPassword { get; set; }

		/// <summary>
		/// 用户类型 （普通用户、企业用户）
		/// </summary>
		public string UserType { get; set; }
	}
}
